﻿using Ledict.ConditionExtract.DAL;
using Ledict.ConditionExtract.Model;
using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Ledict.ConditionExtract.BLL
{
    public class SYS_CaseCauseElement_EvidRelBLL
    {
        SYS_CaseCauseElement_EvidRelDAL dal = new SYS_CaseCauseElement_EvidRelDAL();

        /// <summary>
        /// 批量添加数据
        /// </summary>
        public bool BatchAdd(IList<SYS_CaseCauseElement_EvidRel> list)
        {
            return dal.BatchAdd(list);
        }

        /// <summary>
        /// 添加
        /// </summary>
        /// <param name="Model"></param>
        /// <returns></returns>
        public bool AddSYSCaseCauseElementEvidRel(SYS_CaseCauseElement_EvidRel Model)
        {
            return dal.AddSYSCaseCauseElementEvidRel(Model);
        }

        /// <summary>
        /// 修改一条数据
        /// </summary>
        public bool UpdateSYSCaseCauseElementEvidRel(SYS_CaseCauseElement_EvidRel Model)
        {
            return dal.UpdateSYSCaseCauseElementEvidRel(Model);
        }

        /// <summary>
        /// 删除数据
        /// </summary>
        /// <param name="CER_ID"></param>
        /// <returns></returns>
        public bool DeleteSYSCaseCauseElementEvidRel(string CER_ID)
        {
            return dal.DeleteSYSCaseCauseElementEvidRel(CER_ID);
        }

        /// <summary>
        /// 获取要素证据表信息
        /// </summary>
        /// <param name="cdID"></param>
        /// <param name="ccName"></param>
        /// <returns></returns>
        public DataTable GetSysCaseCauseElementData(string cdID, string ccName)
        {
            return dal.GetSysCaseCauseElementData(cdID, ccName);
        }
    }
}
